﻿
/*
NAILSUPERSTORE ® COMPANY
 
[HISTORY]
Created By  	: NGUYEN VAN TY
Created Date	: 12/14/2010
Modified By     :
Modified Date   :
Note            :

*/

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using CommonTagTime.DataAccess;
using CommonTagTime.ModelObject;
namespace CommonTagTime.Business
{
    public class busCountry
    {
        //------------------------------------------------
        //FIELD TABLE
        //------------------------------------------------
       
        public const string COUNTRYID = "CountryId";      
        public const string SORTORDER = "SortOrder";
        public const string ISACTIVE = "IsActive";
        public const string COUNTRYNAME = "CountryName";
        public const string COUNTRYCODE = "CountryCode";
        public const string ORDERDIRECTION = "OrderDirection";
        public const string CURRENTPAGE = "CurrentPage";
        public const string PAGESIZE = "PageSize";     
        public const string TOTALRECORDS = "TotalRecords";
        public const string CONDITION = "Condition";


        private daoCountry _daoCountry;
        //------------------------------------------------
        //PUBLIC
        //------------------------------------------------
        public busCountry()
        {
            _daoCountry = new daoCountry();
        }
        public CountryCollection GetAll()
        {
           return  _daoCountry.GetAll();
        }
        public Country GetById(int id)
        {
            return _daoCountry.GetById(id);
        }
        public bool OrderUp(int categoryID)
        {
            return _daoCountry.OrderUp(categoryID);
        }       
        public bool OrderDown(int categoryID)
        {
            return _daoCountry.OrderDown(categoryID);
        }
        public bool Active(int categoryID)
        {
            return _daoCountry.Active(categoryID);
        }
        public bool DeActive(int categoryID)
        {
            return _daoCountry.DeActive(categoryID);
        }
        public bool Delete(int categoryID)
        {
            return _daoCountry.Delete(categoryID);
        }
        public int Insert(Country objData)
        {
            return _daoCountry.Insert(objData);           
        }
        public int Update(Country objData)
        {
            return _daoCountry.Update(objData);
        }
        public CountryCollection List(Country country)
        {
            return _daoCountry.List(country);
        }
    }
}